﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DotHandler;
using System.Runtime.Serialization;

namespace DotBusiness.Models
{
     [Serializable]
    public class Tipo : Model
    {
        #region Propriedades
        private string _tipo;

        public double Preco { get; set; }

        public string Titulo
        {
            get
            {
                return this._tipo;
            }
            set
            {
                this._tipo = value.ToUpper()[0] + "";
            }
        }
        #endregion

        #region Construtor
        public Tipo() {
            this._key = "Titulo";
        }
        #endregion

        #region Métodos
        protected Tipo(SerializationInfo info, StreamingContext context)
            : base(info, context) { }
        #endregion

    }
}
